package view
{
	import flash.events.MouseEvent;
	import flash.utils.getQualifiedClassName;
	
	import mx.controls.Button;
	
	import org.osflash.thunderbolt.Logger;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator.FlexMediator;

	public class HelloWorldMediator extends FlexMediator
	{
		public static const NAME:String = getQualifiedClassName(HelloWorldMediator);
		
		public function HelloWorldMediator(viewComponent:Object)
		{
			super(NAME, viewComponent);
		}
		
		override public function onRegister():void
		{
			Logger.info(NAME+ " : onRegister()");
			
			registerEventListeners();	
		}
		
		public function respondToShowTime(notification:INotification):void
		{
			var now:Date = notification.getBody() as Date;
			Logger.info(NAME+ " : respondToShowTime() Time is = "+ now.toDateString());
		}
		
		private function registerEventListeners():void
		{
		}
		
		private function get app():HelloWorld
		{
			return viewComponent as HelloWorld;
		}
	}
}